<script lang="ts">
import { IconProps } from "naive-ui";
import { defineComponent } from "vue";
import { getIconByName, ZIconName } from ".";

export interface ZIconProps extends IconProps {
  name: ZIconName;
}

export default defineComponent({
  props: ["name"],
  setup(props: ZIconProps) {
    return getIconByName(props.name);
  },
});
</script>
